<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .nav-list {
            width: 1211px;
            height: 48px;
            background-color: #E8E7E3;
            margin: 125px auto;
        }

        .nav-list .item {
            float: left;
            line-height: 48px;
        }

        .nav-list .item a {
            display: block;
            padding: 0 39px;
            font-size: 18px;
            text-decoration: none;
            color: #777777;
        }

        .nav-list a:hover {
            background-color: #3f3f3f;
            color: #E8E7E3;
        }

        .nav-list .item:last-child a {
            padding: 0 42px 0 43px;
        }
    </style>
</head>

<body>
    <div class="nav-list">
        <div class="item"><a href="#">HTML/CSS</a></div>
        <div class="item"><a href="#">Browser Side</a></div>
        <div class="item"><a href="#">Server Side</a></div>
        <div class="item"><a href="#">Programming</a></div>
        <div class="item"><a href="#">XML</a></div>
        <div class="item"><a href="#">Web Building</a></div>
        <div class="item"><a href="#">Reference</a></div>
    </div>
</body>

</html>